package day20180129.designMode.two_Adapter.objectAdapter;

/**
 * Created by 14394 on 2018/1/29.
 */
//适配器
public class PrintBanner extends Print {
    private Banner banner;

    public PrintBanner(String string) {
        this.banner = new Banner(string);
    }

    @Override
    public void printWeak() {
        banner.showWithParent();
    }

    @Override
    public void printStrong() {
        banner.showWithAster();
    }
}
